import axios from 'axios'
// 邻里求助列表数据
export function getHelpList () {
  const url = `https://ynwx.zgwyzxw.cn/index.php/home/Neighbor/index`
  return axios({
    method: 'GET',
    url: url
  }).then((res) => {
    return Promise.resolve(res.data)
  }).catch((err) => {
    return Promise.resolve(err)
  })
}

export function getSeekHelpDetail (id) {
  const url = `https://ynwx.zgwyzxw.cn/index.php/home/Neighbor/getNeighborDetail/?id=${id}`
  return axios({
    method: 'GET',
    url: url
  }).then((res) => {
    return Promise.resolve(res.data)
  }).catch((err) => {
    return Promise.resolve(err)
  })
}
